﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VkontakteSharp.Model
{

    public class Checkin
    {
        public string Link
        {
            get { return String.Format("http://vk.com/wall{0}_{1}", Uid, Id); }
        }

        /// <summary>
        /// идентификатор записи на стене пользователя
        /// </summary>
        [JsonMapping("post_id", JsonMapping.MappingType.Primitive)]
        public long Id { get; set; }
        /// <summary>
        ///  идентификатор пользователя, создавшего запись
        /// </summary>
        [JsonMapping("uid", JsonMapping.MappingType.Primitive)]
        public long Uid { get; set; }
        /// <summary>
        /// время публикации записи
        /// </summary>
        [JsonMapping("date", JsonMapping.MappingType.Primitive)]
        public DateTime Date { get; set; }
        /// <summary>
        /// идентификатор места
        /// </summary>
        [JsonMapping("place_id", JsonMapping.MappingType.Primitive)]
        public long place_id { get; set; }

        [JsonMapping("latitude", JsonMapping.MappingType.Primitive)]
        public double Latitude { get; set; }

        [JsonMapping("longitude", JsonMapping.MappingType.Primitive)]
        public double Longitude { get; set; }

        [JsonMapping("distance", JsonMapping.MappingType.Primitive)]
        public long distance { get; set; }
    }
}
